<template>
  <div class="pageBox">
    <head-component title="公告"></head-component>
    <div class="content">
      <div class="list">
        <div class="listItem flex" v-for="(item,index) in 5" :key="index" @click="goDetails">
          <p>公告消息，通知公告消息群公告消息，公告消</p>
          <span>2017/03/25</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
import { defineComponent } from "vue";
import headComponent from "../../components/headComponent.vue";
import router from "../../router";

export default defineComponent({
  components: {
    headComponent,
  },
  setup() {
    function goDetails() {
      router.push({
        path: "/noticeDetails",
      })
    }
    return {
      goDetails
    };
  },
});
</script>

<style scoped lang="less">
.pageBox {
  width: 100%;
  min-height: 100vh;
  background: #fff;
  padding-top: 88px;
  .content {
    padding: 0 30px;
    .list {
      .listItem {
        padding: 30px 0 25px 0;
        flex-direction: column;
        border-bottom: 1px solid #f5f5f5;
        p {
          font-size: 30px;
          font-weight: 400;
          color: #333333;
          margin-bottom: 14px;
        }
        span {
          font-size: 26px;
          font-weight: 400;
          color: #999999;
        }
      }
    }
  }
}
</style>